<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
    <title>axios.create()</title>
  </head>
  <body>
    <div>
      <button onclick="testGet()">GET请求</button>
      <button onclick="testPost()">POST请求</button>
      <button onclick="testPut()">PUT请求</button>
      <button onclick="testDelete()">DELETE请求</button>
    </div>

    <script src="https://cdn.bootcss.com/axios/0.19.0/axios.js"></script>

    <script>
      const instance = axios.create({
        baseURL: "http://localhost:3000",
        timeOut: 40000,
      });

      const instance1 = axios.create({
        baseURL: "http://localhost:4000",
        timeOut: 40000,
      });
    </script>
  </body>
</html>
